package models

import (
	"github.com/astaxie/beego/orm"
)

type Exchange struct {
	Id       int
	Symbol   string
	Gdax     float64
	Kraken   float64
	Bitfinex float64
	Gemini   float64
	Bitstamp float64
	Created  int
}

func init() {
	orm.RegisterModel(new(Exchange))
}

func InsertExchange(exchange *Exchange) {
	o := orm.NewOrm()

	o.Insert(exchange)
}
